Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

London class_10- Junita Lama-JavaScript-Week-1#483

Open
Junitalama wants to merge 6 commits into
CodeYourFuture:masterfrom
Junitalama:master
Open

London class_10- Junita Lama-JavaScript-Week-1#483
Junitalama wants to merge 6 commits into
CodeYourFuture:masterfrom
Junitalama:master

Conversation

@Junitalama
Copy link
Copy Markdown

Volunteers: Are you marking this coursework? You can find a guide on how to mark this coursework in HOW_TO_MARK.md in the root of this repository

Your Details

  • Your Name:
  • Your City:
  • Your Slack Name:

Homework Details

  • Module:
  • Week:

Notes

  • What did you find easy?

  • What did you find hard?

  • What do you still not understand?

  • Any other notes?

Copy link
Copy Markdown

@AndriusIsin AndriusIsin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job Junita! I like your way of writing code

@ahmedsaif2002
Copy link
Copy Markdown

good job Junita keep going

@Junitalama
Copy link
Copy Markdown
Author

Good job Junita! I like your way of writing code

thank you andrius!

@Junitalama
Copy link
Copy Markdown
Author

good job Junita keep going

good job Junita keep going

thank you ahmed

Copy link
Copy Markdown

@PaulinaWywrot PaulinaWywrot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job Junita :)

@Junitalama
Copy link
Copy Markdown
Author

Good job Junita :)

thank you dear :)

Copy link
Copy Markdown

@kjjwhitlock kjjwhitlock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Junita, really great job! Lots of clear coding in here and you've clearly picked up the concepts well. You went the extra mile with the exercises and have really mastered string interpolation which is great to see. Watch out for typos as they can make life difficult when you're on the job :) (the amount of hours I've spent sifting through my code because of a silly typo...).

Comment thread extra/1-currency-conversion.js Outdated

function convertToUSD() {}
function convertToUSD(Pound) {
return Pound*1.4;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Don't forget spaces to improve readability, though :)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Don't forget spaces to improve readability, though :)

Thank you. i have added space now.

Hi Junita, really great job! Lots of clear coding in here and you've clearly picked up the concepts well. You went the extra mile with the exercises and have really mastered string interpolation which is great to see. Watch out for typos as they can make life difficult when you're on the job :) (the amount of hours I've spent sifting through my code because of a silly typo...).

THANK YOU so much for your reviews. It is really helpful for me to realise my mistakes. I will use and remember all the suggestions you have given me here in future too .

Comment thread extra/1-currency-conversion.js Outdated

function convertToBRL() {}
function convertToBRL(Pound) {
const BRL = 0.99 * Pound * 5.7;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, but you could think about breaking this out to improve readability. Your code should read like a story, so when you are breaking out and finding the 0.99 - how can you inform collaborators that's what you're doing? e.g. add a line with an additional variable such as priceAfterFee

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, but you could think about breaking this out to improve readability. Your code should read like a story, so when you are breaking out and finding the 0.99 - how can you inform collaborators that's what you're doing? e.g. add a line with an additional variable such as priceAfterFee

Done!t Thank you

Comment on lines +8 to +9
return `Hello, my name is ${name} and I am ${age} years old`;
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great use of string interpolation here!

function getTotal(a, b) {
total = a ++ b;
total = a + b;
return `The total is ${total}`;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here too :), good job.

a * b * c;
return;
return a * b * c;
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spot on! Nice and clean :)

Comment thread extra/2-piping.js

// Why can this code be seen as bad practice? Comment your answer.
let badCode =
const badCode = format((startingValue + 10)*2);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, but can you do this line using all of your methods rather than maths operands here?

Comment thread extra/2-piping.js

const startingValue = 2;

// Why can this code be seen as bad practice? Comment your answer.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The task has asked you to comment here why you think this is bad code :).

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot to add comments. i have added now. Thank you so much for pointing it out.

Comment thread extra/2-piping.js Outdated
There are some Tests in this file that will help you work out if your code is working.
let addition = add(startingValue, 10);
let multification = multiply(addition, 2);
let goodCode = format(multification);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOVE it. This is so tidy, clear and well labelled (watch out for the p in multification though).

Comment thread extra/3-magic-8-ball.js Outdated
function shakeBall() {
//Write your code in here
console.log("The ball has shaken!");
let ranomIndex = Math.floor(Math.random() * allAnswers.length);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

watch out with your spelling here on randomindex :)

Comment thread extra/3-magic-8-ball.js
}

}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent! Passes all tests and very readable, well done.

Copy link
Copy Markdown

@kjjwhitlock kjjwhitlock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Junita, really great job! Lots of clear coding in here and you've clearly picked up the concepts well. You went the extra mile with the exercises and have really mastered string interpolation which is great to see. Watch out for typos as they can make life difficult when you're on the job :) (the amount of hours I've spent sifting through my code because of a silly typo...).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants